<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<script type="text/javascript">
    $(function () {

        $.acooly.framework.registerKeydown('manage_freshAirUps_from', 'manage_freshAirUps_datagrid');
    });
    function freshAirUps_t(value,row) {
        if(value){
            return value;
        }else {
            return '';
        }
        if(value=='true'){
            return '<i class="fa fa-check fa-lg fa-fw fa-col" style="color: green"></i>'
        }else{
            return '<i class="fa fa-times fa-lg fa-fw fa-col" style="color: red"></i>'
        }

    }


    function freshAirUps_t1(value,row) {


        var f_type=$("#manage_freshAirUps_from [name='type']").val();
        debugger
        var str="'ffffff100000f107'";
        $.acooly.framework.show('/manage/demo/report/listAll.html?eId=9&eqid='+str+'&createTime='+value+'&type='+f_type,1300,500);
        //$.acooly.framework.show('/manage/demo/report/showdetal.html?eqid=ffffff100000f107&createTime='+value,500,500);
    }
    function freshAirUps_d(value,row) {
        return '   <a onclick=" freshAirUps_t1(\''+row.t1+'\') " href="#" title="查看"><i class="fa fa-file-o fa-lg fa-fw fa-col"></i></a>';
    }
</script>
<div class="easyui-layout" data-options="fit : true,border : false">
    <!-- 查询条件 -->
    <div data-options="region:'north',border:false" style="padding:5px; overflow: hidden;" align="left">
        <form id="manage_freshAirUps_from"  onsubmit="return false">
            <table class="tableForm" width="100%">
                <tr>
                    <td align="left">
                        <div>
                            <span>类型：</span>
                            <select name="type" editable="false" style="height:27px;width: 150px" panelHeight="auto" class="easyui-combobox">
                                <option value="1">日报</option>
                                <option value="2">月报</option>
                                <option value="3">年报</option>
                            </select>
                            <span class="div_outter_text">
                            <input  name="begin" type="text" onFocus="WdatePicker({readOnly:false,dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="line-height:28px;
                                   border-radius: 5px; border:1px #95B8E7 solid; width:146px; vertical-align: middle;" placeholder="开始时间" prompt="限办时间(开始)"/>
                        </span>
                            <span class="div_outter_text">
                            <input  name="end" type="text" onFocus="WdatePicker({readOnly:false,dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="line-height: 28px;
                                border-radius: 5px; border:1px #95B8E7 solid; width:146px; vertical-align: middle;" placeholder="结束时间" prompt="限办时间(结束)" />
                        </span>
                            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:false"
                               onclick="$.acooly.framework.search('manage_freshAirUps_from','manage_freshAirUps_datagrid');">
                                <i class="fa fa-search fa-lg fa-fw fa-col"></i>查询</a>
                            <a href="#" class="easyui-linkbutton" iconCls="icon-excel" plain="false"
                               onclick="$.lora.common.commonExportReport('manage_freshAirUps_datagrid','新风数据报表')">导出</a>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div data-options="region:'center',border:false">
        <table id="manage_freshAirUps_datagrid" class="easyui-datagrid" url="/manage/demo/report/freshAirUpsreport.html" toolbar="#manage_freshAirUps_toolbar" fit="true" border="false" fitColumns="false"
               checkOnSelect="true" selectOnCheck="true" singleSelect="true">
            <thead>
            <tr>
                <th align="center" colspan="9">新风机</th>
            </tr>
            <tr>
                <th field="rowActions" data-options="formatter:function(value, row, index){return freshAirUps_d(value,row)}">动作</th>
                <th align="center" field="t1" width="100">日期</th>
                <th align="center" field="t2">开关机状态</th>
                <th align="center" field="t3">工作模式</th>
                <th align="center" field="t4">风速</th>
                <th align="center" field="t5">pm2.5浓度</th>
                <th align="center" field="t6">pm10浓度</th>
                <th align="center" field="t7">温度</th>
                <th align="center" field="t8">湿度</th>
                <%--<th align="center" field="remark"   width="200">备注</th>--%>
            </tr>
            </thead>
        </table>
        <div id="manage_freshAirUps_toolbar">

        </div>
    </div>
</div>